<template>
  <div id="bigbox">
    <a-steps id="jd">
      <a-step description="输入详细的渠道信息">选择基本信息 </a-step>
      <a-step description="创建渠道活动">输入渠道信息 </a-step>
      <a-step description="创建成功">完成创建 </a-step>
    </a-steps>

    <a-form
      id="bd"
      :model="form"
      :style="{ width: '600px' }"
      auto-label-width
      @submit="handleSubmit"
    >
      <a-form-item field="post" label="活动名称">
        <a-input v-model="form.post" placeholder="please enter your post..." />
      </a-form-item>
      <a-form-item
        field="section"
        label="渠道类型"
        :rules="[{ match: /section one/, message: 'must select one' }]"
      >
        <a-select v-model="form.section" placeholder="Please select ...">
          <a-option value="section one">Section One</a-option>
          <a-option value="section two">Section Two</a-option>
          <a-option value="section three">Section Three</a-option>
        </a-select>
      </a-form-item>
      <a-form-item field="post" label="推广地址">
        <a-input v-model="form.post" placeholder="please enter your post..." />
      </a-form-item>
      <a-form-item field="date" label="推广时间">
        <a-date-picker v-model="form.date" placeholder="Please select ..." />
      </a-form-item>
      <a-form-item>
        <a-button html-type="submit">Submit</a-button>
      </a-form-item>
    </a-form>
  </div>
</template>
<script>
import { reactive } from "vue";

export default {
  setup() {
    const form = reactive({
      name: "",
      post: "",
      isRead: false,
    });
    const handleSubmit = (data) => {
      console.log(data);
    };

    return {
      form,
      handleSubmit,
    };
  },
};
</script>
<style scoped>
#bigbox {
  padding: 0 50px;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  /* padding: 100px; */
}
#jd {
  margin: 50px auto;
}
#bd {
  margin: 50px auto;
}
</style>
